package Chapter2.Comparing.c6;

import java.util.Vector;
import java.util.Enumeration;

public class EnumerationTester {
    public static void main(String[] args) {
        Enumeration<String>days;
        Vector<String> dayNames = new Vector<String>();
        dayNames.add("a");
        dayNames.add("b");
        dayNames.add("c");
        dayNames.add("d");
        days = dayNames.elements();
        while (days.hasMoreElements()) {
            System.out.println(days.nextElement());
        }
    }
}
